import request from '@/utils/request'

export function getOrginList() {
  return request({
    url: 'origin/list',
    method: 'post'
  })
}

export function updateOrgin(data) {
  return request({
    url: 'origin/insert',
    method: 'post',
    data
  })
}


export function DelOrgin(f_id) {
  return request({
    url: 'origin/del',
    method: 'post',
    params: { f_id }
  })
}


export function getVoiceList(params) {
  return request({
    url: 'voice/list',
    method: 'post',
    params
  })
}


export function updateVoice(data) {
  return request({
    url: 'voice/insert',
    method: 'post',
    data
  })
}

//语音包上架
export function upVoice(id) {
  return request({
    url: 'voice/up',
    method: 'post',
    params: { id }
  })
}

//语音包下架
export function downVoice(id) {
  return request({
    url: 'voice/down',
    method: 'post',
    params: { id }
  })
}

export function getBanner() {
  return request({
    url: 'market/banner/list',
    method: 'post'
  })
}

export function getGongg() {
  return request({
    url: 'market/gong/list',
    method: 'post'
  })
}






export function updateMarketBanner(data) {
  return request({
    url: 'admin/banner/update',
    method: 'post',
    data
  })
}

export function DelMarketBanner(h_id) {
  return request({
    url: 'admin/banner/del',
    method: 'post',
    data: {
      h_id
    }
  })
}

export function updateMarketGong(data) {
  return request({
    url: 'admin/gong/update',
    method: 'post',
    data
  })
}

export function DelMarketGong(f_id) {
  return request({
    url: 'admin/gong/del',
    method: 'post',
    data: {
      f_id
    }
  })
}



export function DelMarket(y_id) {
  return request({
    url: 'admin/market/del',
    method: 'post',
    data: {
      y_id
    }
  })
}
